package com.yunc.modules.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunc.modules.shop.entity.Item;
import com.yunc.modules.shop.mapper.ItemMapper;
import com.yunc.modules.shop.service.IItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 商品表
 *
 * @author congcong tao
 * @create 2018/12/23 10:16 PM
 */
@Service("itemService")
public class ItemServiceImpl extends ServiceImpl<ItemMapper, Item> implements IItemService {

    @Autowired
    private ItemMapper itemMapper;

    @Override
    public Item getLockItem(Long id) {
        return itemMapper.getLockItem(id);
    }
}
